package com.njts.extend;

/**
 * @author David GE
 * Date  2025/11/19
 */
public class AbstractTest {
    public static void main(String[] args) {
        // 抽象类不能实例化
        //AbstractUser user = new AbstractUser();
        AdminUser adminUser = new AdminUser();
        adminUser.register("gzl","123456");
        DoctorUser doctorUser = new DoctorUser();
        doctorUser.register("zs","12345");
        PatientUser patientUser = new PatientUser();
        patientUser.register("gl","123");
    }
}
